package com.caoji.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.caoji.dto.PageDTO;
import com.caoji.entity.SpecParamDTO;
import com.caoji.entity.SpuDTO;
import com.caoji.item.entity.Spu;

import java.util.List;

public interface SpuService extends IService<Spu> {
    PageDTO<SpuDTO> querypage(Integer page, Integer rows, Boolean saleable, Long categoryId, Long brandId, Long id);

    void addspu(SpuDTO spuDTO);

    SpuDTO qyeryspualls(Long id);

    SpuDTO qyeryspu(Long id);

    void isSaleable(Long id, Boolean saleable);

    void updategoods(SpuDTO spuDTO);
    List<SpecParamDTO> findparam(Long id, boolean searching);
}
